package cn.jobstart.searchExt;

import cn.jobstart.model.Industry;
import cn.jobstart.search.IndustrySearch;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.experimental.Accessors;


/**
 * @author sunke
 * @Date 2023-09-15 15:04:57
 * @description IndustrySearchExt      行业
 */
@Data
@Accessors(chain = true)
@ApiModel("行业IndustrySearchExt")
public class IndustrySearchExt extends IndustrySearch<IndustrySearchExt> {

    private int topFlag = -1;

    public IndustrySearchExt setUpNameLike(String upNameLike) {
        this.upNameLike = upNameLike;
        setLikeField("up_industry.i_name",upNameLike);
        return this;
    }

    private String upNameLike;

    public static IndustrySearchExt getInstance() {
        return new IndustrySearchExt();
    }

    public IndustrySearchExt setTopFlag(int topFlag) {
        this.topFlag = topFlag;
        if (topFlag == 1) {
            this.setFieldNull(Industry.UP_ID);
        }

        return this;
    }

    @Override
    public IndustrySearchExt getSubThis() {
        return this;
    }

}

